import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import User from '@/views/User'
import Record from '@/views/Record'
import Knownledge from '@/views/Knownledge'
import OwnDoc from '@/views/OwnDoc'
import News from '@/views/News'
import SickState from '@/views/SickState'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/user',
      component: User
    },
    {
      path: '/record',
      component: Record,

    },
    {
      path: '/record',
      component: Record
    },
    {
      path: '/knownledge',
      component: Knownledge
    },
    {
      path: '/ownDoc',
      component: OwnDoc
    },
    {
      path: '/news',
      component: News
    },
    {
      path: '/sickstate',
      component: SickState
    },

  ]
})
